package com.ruoyi.project.WebMoudle.userExchange.mapper;

import java.util.List;
import com.ruoyi.project.WebMoudle.userExchange.domain.UserExchange;
import org.apache.ibatis.annotations.Param;

/**
 * 积分兑换记录Mapper接口
 * 
 * @author ruoyi
 * @date 2020-07-20
 */
public interface UserExchangeMapper 
{
    /**
     * 查询积分兑换记录
     * 
     * @param id 积分兑换记录ID
     * @return 积分兑换记录
     */
    public UserExchange selectUserExchangeById(Long id);

    /**
     * 查询积分兑换记录列表
     * 
     * @param userExchange 积分兑换记录
     * @return 积分兑换记录集合
     */
    public List<UserExchange> selectUserExchangeList(UserExchange userExchange);

    /**
     * 新增积分兑换记录
     * 
     * @param userExchange 积分兑换记录
     * @return 结果
     */
    public int insertUserExchange(UserExchange userExchange);

    /**
     * 修改积分兑换记录
     * 
     * @param userExchange 积分兑换记录
     * @return 结果
     */
    public int updateUserExchange(UserExchange userExchange);

    /**
     * 删除积分兑换记录
     * 
     * @param id 积分兑换记录ID
     * @return 结果
     */
    public int deleteUserExchangeById(Long id);

    /**
     * 批量删除积分兑换记录
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteUserExchangeByIds(String[] ids);

    List<UserExchange> queryExchangeLog(@Param("wxUserId") Long wxUserId,@Param("month") String month);
}
